﻿using System.Collections.Generic;
using LogSystem;
using UnityEngine;
using XLua;
#if UNITY_EDITOR
using UnityEditor;
#endif

namespace ImageEffects
{
    public class SurvivorLightElement : LightElement
    {
        private MaterialPropertyBlock m_propertyBlock;

        public MaterialPropertyBlock GetPropertyBlock()
        {
            return m_propertyBlock;
        }

        public void SetPropertyBlock(MaterialPropertyBlock block)
        {
            m_propertyBlock = block;
        }
        
        public void Refresh()
        {
            if (_isAdded)
            {
                _lightController.RemoveLightingElement(this);
            }
            AddToLightController();
        }
        
    }

}
